<?php
if (!defined('XOOPS_ROOT_PATH')) exit();

class Mileage_AddMySmartyPlugins extends XCube_ActionFilter
{
	function preBlockFilter()
	{
		$this->mRoot->mDelegateManager->add('XoopsTpl.New', array($this, 'addMySmartyPlugins'));
	}

	function addMySmartyPlugins(&$xoopsTpl)
	{
		$xoopsTpl->plugins_dir[] = realpath(dirname(__FILE__)) . '/../include/smartyplugins';
	}
}
